var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    orderList: []
  },
  onShow:function(){
    var that = this
    wx.getStorage({
      key: 'openid',
      success: function (res) {
        let openid = res.data
        wx.showLoading({
          title: '加载中',
        })
        wx.request({
          url: app.globalData.URL + '/app/team/orderList?orderState=3&remarks=2&openid=' + openid,
          success: function (res) {
            wx.hideLoading()
            console.log("orderList:", res.data)
            that.setData({
              orderList: res.data.orderList,
              remarks: res.data.remarks
            })

          }
        })
      },
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
  },

  toDetail: function (e) {
    let that = this
    wx.navigateTo({
      url: '../orderDetail/orderDetail?orderNum=' + e.currentTarget.dataset.ordernnum
    })
  },





})